<?php /* Smarty version Smarty-3.1.14, created on 2017-08-18 09:43:44
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\index.html" */ ?>
<?php /*%%SmartyHeaderCode:168245994ee661312c1-21136036%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a5f2ea5cb60d342bce5e8f33a932820a363b7b2d' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\index.html',
      1 => 1503020376,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '168245994ee661312c1-21136036',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_5994ee66157255_43020655',
  'variables' => 
  array (
    'session' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5994ee66157255_43020655')) {function content_5994ee66157255_43020655($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<script type="text/javascript">
function onload_frame(){
	/*给框架定它适合浏览器的宽度*/	
	var wi=$(window).width();
	if(wi<1200){wi=1200;}
	var frame_width=(wi-178)+"px";
	$("#workspace").width(frame_width); 
	var frame_height=($(window).height()-91)+"px";
	$("#workspace").height(frame_height); 
}
function openItem(args){
	spl = args.split(',');
  	op  = spl[0];
	try {
		act = spl[1];
		nav = spl[2];
		u=spl[3];
	}
	catch(ex){}
	if (typeof(act)=='undefined'){var nav = args;}
	$('.actived').removeClass('actived');
	$('#nav_'+nav).addClass('actived');
	$('.selected').removeClass('selected');
	//show
	$('#mainMenu ul').css('display','none');
	$('#sort_'+nav).css('display','block');
	if (typeof(act)=='undefined'){
		//顶部菜单事件
		html = $('#sort_'+nav+'>li>dl>dd>ol>li').first().html();
		str = html.match(/openItem\('(.*)'\)/ig);
		arg = str[0].split("'");
		spl = arg[1].split(',');
		op  = spl[0];
		act = spl[1];
		nav = spl[2];
		u=spl[3];
		first_obj = $('#sort_'+nav+'>li>dl>dd>ol>li').first().children('a');
		$(first_obj).addClass('selected');
		//crumbs
		$('#crumbs').html('<span>'+$('#nav_'+nav+' > span').html()+'</span><span class="arrow">&nbsp;</span><span>'+$(first_obj).text()+'</span>');
	}else{
		//左侧菜单事件
		$("a[name='item_"+op+act+"']").addClass('selected');
		//crumbs
		$('#crumbs').html('<span>'+$('#nav_'+nav+' > span').html()+'</span><span class="arrow">&nbsp;</span><span>'+$('#item_'+op+act).html()+'</span>');
	}
	if(u){src = act+'.php'+u;}else{src = act+'.php';}
	$('#workspace').attr('src',src);
}
//当浏览器窗口大小改变的时候
window.onresize=function(){
	onload_frame();
}
</script>
<body onload="onload_frame()" style="min-width:1200px;">
<div id="pagemask" style="display: none;"></div>
<table style="width: 100%;" id="frametable" height="100%" width="100%" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td colspan="2" height="90" class="mainhd"><div class="layout-header"> <!-- Title/Logo - can use text instead of image -->
          <div id="title"><a href="index.php"></a></div>
          <!-- Top navigation -->
          <div id="topnav" class="top-nav">
            <ul>
              <li class="adminid" title="您好:<?php echo $_smarty_tpl->tpl_vars['session']->value['admin_name'];?>
">您好&nbsp;:&nbsp;<strong><?php echo $_smarty_tpl->tpl_vars['session']->value['admin_name'];?>
</strong></li>
              <li><a onclick="openItem('modifypw,modifypw,dashboard');" style="cursor:pointer;"><span>修改密码</span></a></li>
              <li><a href="privilege.php?act=logout" title="退出"><span>退出</span></a></li>
              <li><a href="../index.php" target="_blank" title="首页"><span>首页</span></a></li>
            </ul>
          </div>
          <!-- End of Top navigation --> 
          <!-- Main navigation -->
          <nav id="nav" class="main-nav">
            <ul>
              <li><a class="link actived" id="nav_dashboard" href="javascript:;" onclick="openItem('dashboard');"><span>基本设置</span></a></li>
              <li><a class="link" id="nav_goodsnav" href="javascript:;" onclick="openItem('goodsnav');"><span>商品管理</span></a></li>
              <li> <a class="link" id="nav_usersnav" href="javascript:;" onclick="openItem('usersnav');"><span>会员管理</span> </a> </li>
              <li> <a class="link" id="nav_qyshnav" href="javascript:;" onclick="openItem('qyshnav');"><span>区域商户</span> </a> </li>
              <li> <a class="link" id="nav_ordernav" href="javascript:;" onclick="openItem('ordernav');"><span>订单管理</span> </a> </li>
            </ul>
          </nav>
          <div class="loca"><strong>您的位置:</strong>
            <div id="crumbs" class="crumbs"><span>基本设置</span><span class="arrow">&nbsp;</span><span>站点设置</span></div>
          </div>
          <div class="toolbar"> </div>
        </div>
        <div> </div></td>
    </tr>
    <tr>
      <td class="menutd" valign="top" width="161"><div id="mainMenu" class="main-menu">
      	  <!--基础设置-->
          <ul id="sort_dashboard" style="display: block;">
            <li>
              <dl>
                <dd>
                  <ol>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_updateindex" id="item_updateindex" onclick="openItem('update,index,dashboard,?act=update');" class="selected">站点设置</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_uppasswordprivilege" id="item_uppasswordprivilege" onclick="openItem('uppassword,privilege,dashboard,?act=uppassword');">修改密码</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_ads_listads" id="item_ads_listads" onclick="openItem('ads_list,ads,dashboard,?act=ads_list');">广告列表</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_ads_positionads" id="item_ads_positionads" onclick="openItem('ads_position,ads,dashboard,?act=ads_position');">广告位置</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_newsnews_type" id="item_newsnews_type" onclick="openItem('news,news_type,dashboard,?act=list');">文章分类</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_newsnews_list" id="item_newsnews_list" onclick="openItem('news,news_list,dashboard,?act=list');">文章列表</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_navnav_list" id="item_navnav_list" onclick="openItem('nav,nav_list,dashboard,?act=list');">自定义导航</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_paymentpayment" id="item_paymentpayment" onclick="openItem('payment,payment,dashboard,?act=list');">支付方式</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_shippingshipping" id="item_shippingshipping" onclick="openItem('shipping,shipping,dashboard,?act=list');">配送方式</a></li>
                  </ol>
                </dd>
              </dl>
            </li>
          </ul>
          <!--商品管理-->
          <ul id="sort_goodsnav" style="display: none;">
            <li>
              <dl>
                <dd>
                  <ol>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_goodsgoods" id="item_goodsgoods" onclick="openItem('goods,goods,goodsnav,?act=list');" class="selected">商品列表</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_goods_addgoods" id="item_goods_addgoods" onclick="openItem('goods_add,goods,goodsnav,?act=add');" class="selected">添加商品</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_goodscategory" id="item_goodscategory" onclick="openItem('goods,category,goodsnav,?act=list');" class="selected">商品分类</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_brandbrand" id="item_brandbrand" onclick="openItem('brand,brand,goodsnav,?act=list');" class="selected">商品品牌</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_goodsgoods_type" id="item_goodsgoods_type" onclick="openItem('goods,goods_type,goodsnav,?act=list');" class="selected">商品类型</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_goods_sxgoods_sx" id="item_goods_sxgoods_sx" onclick="openItem('goods_sx,goods_sx,goodsnav,?act=goods_sx');" class="selected">商品属性</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_recycle_listgoods" id="item_recycle_listgoods" onclick="openItem('recycle_list,goods,goodsnav,?act=recycle_list');" class="selected">商品回收站</a></li>
                  </ol>
                </dd>
              </dl>
            </li>
          </ul>
          <!--会员管理-->
          <ul id="sort_usersnav" style="display: none;">
            <li>
              <dl>
                <dd>
                  <ol>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_usersusers" id="item_usersusers" onclick="openItem('users,users,usersnav,?act=list');" class="selected">会员列表</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_useruser_rank" id="item_useruser_rank" onclick="openItem('user,user_rank,usersnav,?act=list');" class="selected">会员等级</a></li>
                  </ol>
                </dd>
              </dl>
            </li>
          </ul>
          <!--区域商户-->
          <ul id="sort_qyshnav" style="display: none;">
            <li>
              <dl>
                <dd>
                  <ol>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_quyuquyu" id="item_quyuquyu" onclick="openItem('quyu,quyu,qyshnav,?act=list');" class="selected">区域管理</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_useruser_sh" id="item_useruser_sh" onclick="openItem('user,user_sh,qyshnav,?act=list');" class="selected">商户管理</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_peisongpeisong" id="item_peisongpeisong" onclick="openItem('peisong,peisong,qyshnav,?act=list');" class="selected">配送员管理</a></li>
                  </ol>
                </dd>
              </dl>
            </li>
          </ul>
          <!--订单管理-->
          <ul id="sort_ordernav" style="display: none;">
            <li>
              <dl>
                <dd>
                  <ol>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_orderorder" id="item_orderorder" onclick="openItem('order,order,ordernav,?act=list');" class="selected">订单列表</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_deliveryorder" id="item_deliveryorder" onclick="openItem('delivery,order,ordernav,?act=delivery_list');" class="selected">发货单列表</a></li>
                    <li nc_type=""><a href="JavaScript:void(0);" name="item_backorder" id="item_backorder" onclick="openItem('back,order,ordernav,?act=back_list');" class="selected">退货单列表</a></li>
                  </ol>
                </dd>
              </dl>
            </li>
          </ul>
        </div></td>
      <td valign="top" width="100%"><iframe src="index.php?act=update" id="workspace" name="workspace" style="overflow:visible;" frameborder="0" width="100%" height="100%" scrolling="yes" onload="window.parent"></iframe></td>
    </tr>
  </tbody>
</table>
</body>
</html><?php }} ?>